/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chapter5;

/**
 *
 * @author Denise Carolina
 */
public class SelfTest7 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
    }
    
    void doStuff() throws subException{}
    
    class CC2 extends SelfTest7 { void doStuff()throws subSubException{}  }
    // This is an overriding method cannot throws broader exception
//    class CC3 extends SelfTest7 { void doStuff() throws Exception{} }
    class CC4 extends SelfTest7 { void doStuff(int x) throws Exception{} }
    class CC3 extends SelfTest7 { void doStuff(){}}



    class subException extends Exception{}
    class subSubException extends subException{}



}
